<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>
<script>
import {
    loginSession
} from "@/config/api";
export default {
    watch: {
        '$route' (val) {
            console.log('监听')
            // this.session()
        }
    },
    methods: {
        async session() {
            setTimeout(async () =>{
                let res = await loginSession()
                console.log('路由',res)
                if (res.status === 403) {
                    this.$router.push('/login')
                }
            },300)
           
        }
    }
};
</script>
<style>
@import "../static/css/main.css";
@import "../static/css/color-dark.css"; /*深色主题*/
/*@import "../static/css/theme-green/color-green.css";   浅绿色主题*/

/*常见问题页*/
.question-avatar-upload-img .el-upload--text {
    width: 178px;
    height: 178px;
    display: block;
}
.courseContentManage .el-table__body,
.courseContentManage .el-table__header {
    width: 100% !important;
}
.courseContentManage .el-input__inner {
    width: 100% !important;
}
</style>
